//
//  AudioPlayer.h
//  Share
//
//  Created by Lin Zhang on 11-4-26.
//  Copyright 2011年 www.eoemobile.com. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "AudioStreamer.h"

@class AudioButton;

@class AudioStreamer;

@protocol AudioPlayerDeletage <NSObject>

-(void)setProgressStartTime:(float)startTime EndTime:(float)endTime;

@end

@interface AudioPlayer : NSObject {
    AudioStreamer *streamer;
    AudioButton *button;   
    NSURL *url;
    NSTimer *timer;
}

@property (nonatomic, retain) AudioStreamer *streamer;
@property (nonatomic, retain) AudioButton *button;
@property (nonatomic, retain) NSURL *url;
@property (nonatomic,weak) id<AudioPlayerDeletage> audioPlayerDeletage;

- (BOOL)isBegin;
- (void)play;
- (void)stop;
- (BOOL)isProcessing;
- (BOOL)isPlaying;
- (BOOL)isPaused;
- (BOOL)isWaiting;
- (BOOL)isFinishing;
- (BOOL)isStop;
- (void)start;
- (void)pause;
- (AudioStreamerState)curState;
@end













